package mediator;

public class CoffeeMachine extends Device {
    public CoffeeMachine(String name, SmartHomeMediator mediator) {
        super(mediator);
        mediator.register(name, this);
    }

    public void open() {
        System.out.println("打开咖啡机");
    }

    public void close() {
        System.out.println("关闭咖啡机");
    }
}
